//
// Created by Dell on 2020/3/26.
//
#include <iostream>
using namespace std;
#include <stack>

long long power(int x, int m){
    int y = 1;
    stack<int> st;
    while(m > 0) {
        st.push(m & 1);
        m >>= 1;
    }
    while(!st.empty()){
        int j = st.top();
        st.pop();
        y = y * y;
        if(j == 1)
            y = x * y;
    }
    return y;
}

int main(){
    cout << power(2, 10) << endl;
}